package com.lanxiao.cloud.user.api.dto;

import com.lanxiao.cloud.common.core.dto.Dto;
import com.lanxiao.cloud.common.core.enums.SexEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * @author ：qiaoliang
 * @date ：2021-09-13
 */
@ApiModel("用户信息返回模型")
public class UserDubboDto implements Serializable {
  @ApiModelProperty(value = "主键")
  private Long id;
  @ApiModelProperty("昵称")
  private String name;
  @ApiModelProperty("头像")
  private String portrait;
  @ApiModelProperty("性别")
  private SexEnum sex;
  @ApiModelProperty("手机号")
  private String phone;

  private UserDubboDto() {
  }

  public UserDubboDto(Long id, String name, String portrait,
      SexEnum sex, String phone) {
    this.id = id;
    this.name = name;
    this.portrait = portrait;
    this.sex = sex;
    this.phone = phone;
  }

  public Long getId() {
    return id;
  }

  public String getName() {
    return name;
  }

  public String getPortrait() {
    return portrait;
  }

  public SexEnum getSex() {
    return sex;
  }

  public String getPhone() {
    return phone;
  }

}
